<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Takeaway>
 */
class TakeawayFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'tag' => fake()->randomElement(['热销', '推荐', '套餐']),
            'name' => fake()->words(2, true).'套餐',
            'food_id' => Food::inRandomOrder()->first()->id
        ];
    }
}
